package com.gulimall.product.feign;

import com.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author by董江
 * @Tool Intellij IDEA
 * @Classname WareFeignService
 * @Date 2022/5/11 14:34
 */
@FeignClient(value = "gulimall-ware",path = "/ware")
public interface WareFeignService {
    /**
     * 根据skuId查询该sku是否有库存
     * @param skuIds
     * @return
     */
    @PostMapping("/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
